package com.pig4cloud.pig.module.api.entity.mer;

import com.baomidou.mybatisplus.annotation.*;
import com.pig4cloud.pig.common.core.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 会员充值记录对象 mer_self_vip_recharge_record
 *
 * @author ruoyi
 * @date 2023-06-12
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("mer_self_vip_recharge_record")
public class MerSelfVipRechargeRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     *  商家id
     */
    private Integer merId;

    @Excel(name = "会员手机号")
    private String vipPhone;

    @Excel(name = "会员姓名")
    private String vipName;
    /**
     * 会员id
     */
    private Integer selfVipId;

    /**
     * 充值类型 0 - 开会员预充值 1 - 后期充值  2 - 使用
     */
    private Integer rechargeType;

    /**
     * 充值前剩余金额
     */
    private BigDecimal beforeMoney;

    /**
     * 当前充值金额
     */
    @Excel(name = "充值金额")
    private BigDecimal rechargeMoney;

    /**
     * 充值时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 收款人id
     */
    private Long opSysUserId;

    /**
     * 收款人名字
     */
    @Excel(name = "收款人名字")
    private String opSysUserName;

    /**
     * 备注信息
     */
    @Excel(name = "备注信息")
    private String remark;

    @TableField(exist = false)
    private String beginDate;

    @TableField(exist = false)
    private String endDate;


    @Excel(name = "充值时间")
    @TableField(exist = false)
    private String createTimeStr;

    @Excel(name = "商家名称")
    @TableField(exist = false)
    private String merName;
}
